<!--公共头部end-->
<!--内容-->
<!--搜索-->
<div class="public-search">
    <a href="/product/list"><img src="<?= $this->__STATIC__ ?>images/logo_b.png" /></a>
	<form method="post" action="" onsubmit="return false">
		<img id="search-btn" class="search-input1" src="<?= $this->__STATIC__ ?>images/search.png" />
		<input type="text" id="search-text"  value="<?= $this->search ?: ''?>" class="search-input" />
	</form>
</div>

<script>
    $('#search-btn').click(function () {
        window.location.href = '/product/list?search='+$('#search-text').val();
    });

    $('#search-text').keyup(function(event){
        if(event.keyCode ==13){
            window.location.href = '/product/list?search='+$('#search-text').val();
        }
    });
</script>


